<%@page import="java.util.*"%>
<%@page import="paquetes.negocioVO.ClienteVO"%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Mostrar Cliente</title>
		<script type="text/javascript">


function soloNumeros(evt){
	if(window.event){
		keynum = evt.keyCode;
	}else{
		keynum = evt.which;
	}
	if(keynum>47 && keynum<58){
		return true;
	}else{
		return false;
	}
}
</script>
	</head>
	<body>
	<%
	ClienteVO c = (ClienteVO)request.getAttribute("cliente");
	%>
	<table>
		<tr>
			<td><b>Cliente:</b> 
			</td>
		</tr>
		<tr>
			<td><b>Id Cliente</b></td>
			<td><%=c.getId()%></td>
		</tr>
		<tr>
			<td><b>Nombre</b></td>
			<td><%=c.getNombre()%></td>
		</tr>
		<tr>
			<td><b>Documento</b></td>
			<td><%=c.getDocumento()%></td>
		</tr>
		<tr>
			<td><b>TelefonoContacto</b></td>
			<td><%=c.getTelefonoContacto()%></td>
		</tr>
		<tr>
			<td><b>NUEVOS DATOS</b></td>
		</tr>
		
		<tr>
			<td>
			   <a href="ControladorCliente?action=baja&id=<%=c.getId()%>">Dar de baja Cliente</a>
			</td>
		</tr>
		</table>
		<form name="form1" action="./ControladorCliente" method="POST"  onsubmit="return validar();">
<fieldset>
<legend>Datos de cliente</legend>
<table>
    <tr><td>Id:</td><td><input type="TEXT" name="id" size=10></td></tr>
    <tr><td>tipo:</td><td><input type="TEXT" name="tipo" size=20></td></tr>
	<tr><td>Nombre:</td><td><input type="TEXT" name="nombre" size=20></td></tr>
	<tr><td>Documento:</td><td><input type="TEXT" name="documento" size=25></td></tr>
	<tr><td>TelefonoContacto:</td><td><input type="TEXT" name="telefonocontacto" size=10 onkeypress="return soloNumeros(event)"></td></tr>
	<tr><td>Direccion</td><td><input type="TEXT" name="direccion" size=30 ></td></tr>
	<tr><td>Localidad</td><td><input type="TEXT" name="localidad" size=30 ></td></tr>
	<tr><td>Latitud</td><td><input type="TEXT" name="latitud" size=10 ></td></tr>
	<tr><td>longitud</td><td><input type="TEXT" name="longitud" size=10 onkeypress="return soloNumeros(event)"></td></tr>
	<tr><td>distanciaKmDeSucursal</td><td><input type="TEXT" name="distanciaKmDeSucursal" size=3 onkeypress="return soloNumeros(event)" ></td></tr>
	<tr><td>minutosEstimadosDeSucursal</td><td><input type="TEXT" name="minutosEstimadosDeSucursal" size=2 onkeypress="return soloNumeros(event)" ></td></tr>
        		
	
	<tr><td> <input type="hidden" name="action" value="edit">
	<input type="SUBMIT" value=" Modificar " ></td></tr>
</table>
</fieldset>
</form>	
	</body>
</html>